package com.chujian.system.auth.service;


import com.chujian.login.vo.LoginResult;
import com.chujian.login.vo.PcLoginInfo;
import com.chujian.sys.entity.SysUser;
import com.chujian.wx.vo.GetMaUserInfoVo;

public interface ILoginService {

    LoginResult pcLogin(PcLoginInfo loginInfo);

    LoginResult loginMa(String appId, GetMaUserInfoVo getMaUserInfoVo);

    SysUser loginByUsername(PcLoginInfo loginInfo);

    SysUser loginByMobile(PcLoginInfo loginInfo);

    /**
     * 尝试生成小程序token
     *
     * @param appId
     * @param openId
     * @param userLoginId
     * @param prodId
     * @param t
     * @return
     */
    LoginResult tryGetMaToken(String appId, String openId, Long userLoginId, Long prodId,Long t);
}
